/**
 * api管理
 */
import request from './../utils/request'
export default {
    //获取图片验证码
    getCheckImage() {
        return request({
            url: '/system/passport/getCheckImage',
            method: 'get',
            mock: false
        })
    },
    //用户登陆接口
    login(params) {
        return request({
            url: '/system/passport/login',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //获取登陆用户信息接口
    getUserInfo() {
        return request({
            url: '/system/passport/getUserInfo',
            method: 'get',
            data: {},
            mock: false
        })
    },
    //获取路由信息
    getRouters() {
        return request({
            url: '/system/passport/getRouters',
            method: 'get',
            data: {},
            mock: false
        })
    },
    //获取首页信息接口
    getIndexInfo() {
        return request({
            url: '/system/index/getIndexInfo',
            method: 'get',
            data: {},
            mock: false
        })
    },
    //修改个人信息接口
    updateUserInfo(params) {
        return request({
            url: '/system/index/updateUserInfo',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //申请权限
    applyPermission() {
        return request({
            url: '/system/index/applyPermission',
            method: 'get',
            data: {},
            mock: false
        })
    },
    //获取消息数量接口
    noticeCount() {
        return request({
            url: '/system/index/getNoticeCount',
            method: 'get',
            data: {},
            mock: false
        })
    },
    //获取当前用户消息接口
    getNoticeListByUser(params) {
        return request({
            url: '/system/index/getNoticeListByUser',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //已读消息接口
    noticeRead(params) {
        return request({
            url: '/system/index/readNotice',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //获取菜单列表接口
    getMenuList(params) {
        return request({
            url: '/system/menu/selectAllMenu',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //修改密码
    setNewPassword(params) {
        return request({
            url: '/system/index/setNewPassword',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //退出登陆
    logout() {
        return request({
            url: '/system/passport/logout',
            method: 'get',
            data: {},
            mock: false
        })
    },
    //获取用户列表接口
    getUserList(params) {
        return request({
            url: '/system/user/selectUserByPage',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //根据用户ID获取用户接口
    getUserById(params) {
        return request({
            url: '/system/user/selectUserById',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //新增用户接口
    userSubmit(params) {
        return request({
            url: '/system/user/insertUser',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //编辑用户接口
    userUpdate(params) {
        return request({
            url: '/system/user/updateUser',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //删除用户接口
    userDelete(params) {
        return request({
            url: '/system/user/deleteUserByIds',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //获取组织列表接口
    getGroupList(params) {
        return request({
            url: '/system/group/selectAllGroup',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //新增组织接口
    groupSubmit(params) {
        return request({
            url: '/system/group/insertGroup',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //编辑组织接口
    groupUpdate(params) {
        return request({
            url: '/system/group/updateGroup',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //删除组织接口
    groupDelete(params) {
        return request({
            url: '/system/group/deleteGroupById',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //新增菜单接口
    menuSubmit(params) {
        return request({
            url: '/system/menu/insertMenu',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //编辑菜单接口
    menuUpdate(params) {
        return request({
            url: '/system/menu/updateMenu',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //删除菜单接口
    menuDelete(params) {
        return request({
            url: '/system/menu/deleteMenuByIds',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //获取所有角色接口
    getAllRoleList() {
        return request({
            url: '/system/role/selectAllRole',
            method: 'get',
            data: {},
            mock: false
        })
    },
    //获取角色列表接口
    getRoleList(params) {
        return request({
            url: '/system/role/selectRoleByPage',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //根据角色ID获取角色接口
    getRoleById(params) {
        return request({
            url: '/system/role/selectRoleById',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //新增角色接口
    roleSubmit(params) {
        return request({
            url: '/system/role/insertRole',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //编辑角色接口
    roleUpdate(params) {
        return request({
            url: '/system/role/updateRole',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //删除角色接口
    roleDelete(params) {
        return request({
            url: '/system/role/deleteRoleByIds',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //获取文件列表接口
    getFileList(params) {
        return request({
            url: '/system/file/selectFileByPage',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //上传头像接口
    uploadAvatar(params) {
        return request({
            url: '/system/profile/uploadAvatar',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //上传文件获取直传地址接口
    getUploadUrl(params) {
        return request({
            url: '/system/file/getUploadUrl',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //下载文件获取直传地址接口
    getDownloadUrl(params) {
        return request({
            url: '/system/file/getDownloadUrl',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //删除文件接口
    deleteFileByObjectName(params) {
        return request({
            url: '/system/file/deleteFileByObjectName',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //根据应用ID获取应用接口
    getAppById(params) {
        return request({
            url: '/system/app/selectAppById',
            method: 'post',
            data: params,
            mock: false
        })
    },
    // selectLatestApp
    getLatestApp() {
        return request({
            url: '/system/app/selectLatestApp',
            method: 'get',
            mock: false
        })
    },
    //获取应用列表接口
    getAppList(params) {
        return request({
            url: '/system/app/selectAppByPage',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //新增应用接口
    appSubmit(params) {
        return request({
            url: '/system/app/insertApp',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //编辑应用接口
    appUpdate(params) {
        return request({
            url: '/system/app/updateApp',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //删除应用接口
    appDelete(params) {
        return request({
            url: '/system/app/deleteAppByIds',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //获取任务列表接口
    getJobList(params) {
        return request({
            url: '/job/selectScheduleJobByPage',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //根据任务ID获取任务接口
    getJobById(params) {
        return request({
            url: '/job/selectScheduleJobById',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //新增任务接口
    jobSubmit(params) {
        return request({
            url: '/job/insertScheduleJob',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //编辑任务接口
    jobUpdate(params) {
        return request({
            url: '/job/updateScheduleJob',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //删除任务接口
    jobDelete(params) {
        return request({
            url: '/job/deleteScheduleJob',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //执行任务接口
    jobRun(params) {
        return request({
            url: '/job/runScheduleJob',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //停止任务接口
    jobPause(params) {
        return request({
            url: '/job/pauseScheduleJob',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //恢复任务接口
    jobResume(params) {
        return request({
            url: '/job/resumeScheduleJob',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //任务日志分页查询接口
    getJobLogList(params) {
        return request({
            url: '/jobLog/selectScheduleJobLogByPage',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //删除任务日志接口
    jobLogDelete(params) {
        return request({
            url: '/jobLog/deleteScheduleJobLogByIds',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //登录日志分页查询接口
    getLoginLogList(params) {
        return request({
            url: '/system/loginLog/selectLoginLogByPage',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //删除登录日志接口
    loginLogDelete(params) {
        return request({
            url: '/system/loginLog/deleteLoginLogByIds',
            method: 'post',
            data: params,
            mock: false
        })
    },

    //获取缓存信息接口
    getOnlineList(params) {
        return request({
            url: '/system/online/selectOnlineByPage',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //用户强退接口
    forceLogout(params) {
        return request({
            url: '/system/online/forceLogout',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //查询所有权限接口
    getAllPermissionList() {
        return request({
            url: '/permission/selectAllPermission',
            method: 'get',
            data: {},
            mock: false
        })
    },
    //获取设备列表接口
    getDeviceList(params) {
        return request({
            url: '/system/device/selectDeviceByPage',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //根据设备ID获取设备接口
    getDeviceById(params) {
        return request({
            url: '/system/device/selectDeviceById',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //新增设备接口
    deviceSubmit(params) {
        return request({
            url: '/system/device/insertDevice',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //编辑设备接口
    deviceUpdate(params) {
        return request({
            url: '/system/device/updateDevice',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //删除设备接口
    deviceDelete(params) {
        return request({
            url: '/system/device/deleteDeviceByIds',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //获取摄像头accessToken接口
    getAccessToken(params) {
        return request({
            url: '/system/device/getAccessToken',
            method: 'post',
            data: params,
            mock: false
        })
    },
    // 升级设备固件
    updateDeviceFirmware(params) {
        return request({
            url: '/system/device/updateDeviceFirmware',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //控制设备接口
    controlDevice(params) {
        return request({
            url: '/system/device/controlDevice',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //获取模型列表接口
    getModelList(params) {
        return request({
            url: '/system/model/selectModelByPage',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //获取全部模型列表接口
    getAllModelList(params) {
        return request({
            url: '/system/model/selectAllModel',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //根据模型ID获取模型接口
    getModelById(params) {
        return request({
            url: '/system/model/selectModelById',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //新增模型接口
    modelSubmit(params) {
        return request({
            url: '/system/model/insertModel',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //编辑模型接口
    modelUpdate(params) {
        return request({
            url: '/system/model/updateModel',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //删除模型接口
    modelDelete(params) {
        return request({
            url: '/system/model/deleteModelByIds',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //根据设备ID获取模型属性列表接口
    getModelPropertyByDeviceId(params) {
        return request({
            url: '/system/modelProperty/selectModelPropertyByDeviceId',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //根据模型ID获取模型详情接口
    getModelInfoByModelId(params) {
        return request({
            url: '/system/model/selectModelInfoById',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //获取模型属性列表接口
    getModelPropertyByModelId(params) {
        return request({
            url: '/system/modelProperty/selectModelPropertyByModelId',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //根据ID获取模型属性接口
    getModelPropertyById(params) {
        return request({
            url: '/system/modelProperty/selectModelPropertyById',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //新增模型属性接口
    modelPropertySubmit(params) {
        return request({
            url: '/system/modelProperty/insertModelProperty',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //编辑模型属性接口
    modelPropertyUpdate(params) {
        return request({
            url: '/system/modelProperty/updateModelProperty',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //删除模型属性接口
    modelPropertyDelete(params) {
        return request({
            url: '/system/modelProperty/deleteModelPropertyByIds',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //获取模型事件列表接口
    getModelEventByModelId(params) {
        return request({
            url: '/system/modelEvent/selectModelEventByModelId',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //根据ID获取模型事件接口
    getModelEventById(params) {
        return request({
            url: '/system/modelEvent/selectModelEventById',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //新增模型事件接口
    modelEventSubmit(params) {
        return request({
            url: '/system/modelEvent/insertModelEvent',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //编辑模型事件接口
    modelEventUpdate(params) {
        return request({
            url: '/system/modelEvent/updateModelEvent',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //删除模型事件接口
    modelEventDelete(params) {
        return request({
            url: '/system/modelEvent/deleteModelEventByIds',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //获取模型行为列表接口
    getModelActionByModelId(params) {
        return request({
            url: '/system/modelAction/selectModelActionByModelId',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //根据ID获取模型行为接口
    getModelActionById(params) {
        return request({
            url: '/system/modelAction/selectModelActionById',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //新增模型行为接口
    modelActionSubmit(params) {
        return request({
            url: '/system/modelAction/insertModelAction',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //编辑模型行为接口
    modelActionUpdate(params) {
        return request({
            url: '/system/modelAction/updateModelAction',
            method: 'post',
            data: params,
            mock: false
        })
    },
    //删除模型行为接口
    modelActionDelete(params) {
        return request({
            url: '/system/modelAction/deleteModelActionByIds',
            method: 'post',
            data: params,
            mock: false
        })
    },

}